<%-- 
    Document   : RegistrarPagina
    Created on : 19/11/2011, 12:40:41 PM
    Author     : camposvc
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<f:view>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
            <title>JSP Page</title>
        </head>
        <body>
            <h:form>
            <h1><h:outputText value="URL:"/></h1><h:inputText value="#{RegistrarPagina.txt_url}"/>
            <h1><h:outputText value="Prioridad:"/></h1>
            <h:selectOneMenu id="prioridad" value="#{RegistrarPagina.prioridad}">
                  <f:selectItem id="item1" itemLabel="Máxima Prioridad" itemValue="1" />
                  <f:selectItem id="item2" itemLabel="Prioridad Media" itemValue="2" />
                  <f:selectItem id="item3" itemLabel="Mínima Prioridad" itemValue="3" />
            </h:selectOneMenu>
            <h1>
            <h:commandButton value="Registrar"  action="#{RegistrarPagina.Registrar}"></h:commandButton>
            </h1>
            <h1>
            <h:outputText  style="color:red" value="#{RegistrarPagina.txt_error}"/>
            </h1>
            <h1>
            <h:outputText  style="color:blue" value="#{RegistrarPagina.txt_exito}"/>
            </h1>
            </h:form>
        </body>
    </html>
</f:view>
